package Demo;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Repository;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * user:likai
 * Date:2023-01-21
 * Time:17:30
 */
@Repository
public class RepositoryTest {
    private User user;
    @Bean
    public User user(){
        User user=new User();
        user.setAge(1);
        user.setId(1);
        user.setName("l");
        return user;
    }
}
